﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace littleAdminHelper
{
    class internetconnection
    {
        private internetconnection()
        {
        }

        public static Boolean checkConnection(String url){
            try
            {
                System.Net.IPHostEntry i = System.Net.Dns.GetHostEntry(url);
                return true;
            }
            catch
            {
                return false;
            }

            
        }

        
    }
}
